#include <stdio.h>
int main()
{
    int n,sum;
    sum=0;
    while (n>0)
    {
        scanf("%d",&n);
        if (n > 0)
        {
            if (n%2!=0)
            {
                sum+=n;
            }
        }
    }
    printf("sum = %d\n", sum);
    return 0;
}
